<?php
	$this->breadcrumbs=array(
		'Blog',
	);

	if(!Yii::app()->user->isGuest)
	{	
		$this->menu=array
		(
			array('label'=>'Create Post', 'url'=>array('create')),
			array('label'=>'Manage Post', 'url'=>array('admin')),
		);
	}
	else
	{
		$this->menu=array
		(
			array('label'=>'Home', 'url'=>array('/site/index')),
		);
	}
?>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'template'=>"{items}\n{pager}",
)); ?>
